import { _decorator, Component, Label, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Hint')
export class Hint extends Component {
	@property(Label)
	private lbl_hint: Label = null;

	show(str: string){
		let np = new mtec.NudityPromise<Node>();
		this.node.active = true;
		this.lbl_hint.string = str;
		mtec.delay(1.3, ()=>np.resolve(this.node));
		return np.promise;
	}
}
